home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS03.ADF
/
Xref
/
strsave.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-04-02
|
351b
|
19 lines
#include <stdio.h>
#define DBUG 11
char *strsave(s) /* save string s somewhere */
char *s;
{
char *p,*getmem();
if(fdebug(DBUG))
printf("strsave entry: s = %s\n",s);
if ((p = getmem(strlen(s)+1)) != NULL)
strcpy(p,s);
if(fdebug(DBUG))
printf("strsave exit: returning pointer\n");
return(p);
}